package com.ferry.serial.api;

import java.io.OutputStream;
import java.nio.ByteBuffer;

/**
 * Created by daiyong
 */
public interface OutputBuf {

	//bio
	OutputStream outputStream();

	//nio
	ByteBuffer byteBuffer(int minWritableBytes);

	int size();

	boolean hasMemoryAddress();

	Object backingObject();

}
